<?php
    /**
    * Show Video Page
    * 
    * @author trungdt
    * @since Oct 17, 2011
    */
    if (!defined('EXPONENT')) exit('');
    
    $temp=serialize($loc);
    // get all new video for playlist
    $video=$db->selectObjects("videomodule_video","location_data = '{$temp}' ORDER BY postdate DESC");
    
    $video=videomodule::__VideoProcess($video);
    
    
    // fetch to template
    $template=new template("videomodule","_Video_Default",$loc);
    $template->register_permissions(array('administrate',"configure", "create", "edit", "delete"),$loc);
    $template->assign("video", $video);
    $template->assign("video_count", count($video));
    
    $template->output();
?>
